package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FISDemo01 {
    public static void main(String[] args) throws IOException {
        File file = new File("jsd/2406/fos.dat");

        if (file.exists()){
            System.out.println("存在");
            FileInputStream fis = new FileInputStream(file);
//            int a = fis.read();
//            int b = fis.read();
//            int c = fis.read();

            int n =0;
            while ((n=fis.read())!= -1){
                System.out.println(n);
            }

            fis.close();

        }else {
            System.out.println("文件不存在");
        }


    }

}
